<?php
 class Admin_Model_Login extends Zend_Db_Table_Abstract{
 	protected $_name = "users";
	protected $_primary = "user_id";
	
	public function check_login($email,$password){
		$data = $this->select();
			$data->from('users');
			$data->where('email = ?', $email);
			$data->where('password = ?', md5($password));
			$data->where('group_id = ?',6);
			$data=$this->fetchAll($data);
			return $data->toArray();
	}
 }